Skip to content

refactor(TaskDetails): replace chart and map callback any usage #1403#1985

Merged
utksh1 merged 1 commit into
utksh1:mainfrom
NaitikVerma6776:issue-#1403
Jul 9, 2026
Merged

refactor(TaskDetails): replace chart and map callback any usage #1403#1985
utksh1 merged 1 commit into
utksh1:mainfrom
NaitikVerma6776:issue-#1403

Conversation

@NaitikVerma6776

Copy link
Copy Markdown
Collaborator

Summary

  • Replaces the four flagged any annotations in TaskDetails.tsx with concrete types.
  • DetailIcon now uses ComponentProps<typeof HugeiconsIcon>['icon'] for icon props.
  • Severity reduction, preview findings map, and discovery table rows now use Finding or Record<string, unknown>.

Closes #1403

Test plan

  • npm run typecheck (frontend)
  • npm run test -- testing/unit/pages/TaskDetails.collapsible.test.tsx
  • No runtime behavior changes

Use concrete HugeiconsIcon, Finding, and row types in TaskDetails so
the flagged callback annotations no longer rely on any.

Co-authored-by: Cursor <cursoragent@cursor.com>
@NaitikVerma6776 NaitikVerma6776 added level:beginner 20 pts difficulty label for small beginner-friendly PRs type:refactor Refactor work category bonus label gssoc:approved Admin validation: approved for GSSoC scoring area:frontend Frontend React/UI work labels Jul 9, 2026
@utksh1 utksh1 merged commit 641cc2a into utksh1:main Jul 9, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Frontend React/UI work gssoc:approved Admin validation: approved for GSSoC scoring level:beginner 20 pts difficulty label for small beginner-friendly PRs type:refactor Refactor work category bonus label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TYPESCRIPT] Replace TaskDetails chart and map callback any usage

2 participants